const mongoose = require("mongoose")
const {model, Schema} = mongoose

// 公告
const schema = new Schema({
    key: {
        type: String,
        index: true,
    },
    value: {
        type: String
    },
    children: {
        type: Array
    },
    createTime: {
        type: Date,
        default: new Date()
    },
    updateTime: {
        type: Date,
        default: new Date()
    }
})
const School = model("School", schema)

module.exports = School